package com.qst.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.qst.dao.PaidMapper;
import com.qst.dao.ZulistMapper;
import com.qst.pojo.Paid;
import com.qst.pojo.QueryVo;
import com.qst.pojo.Zulist;
import com.qst.service.PaidService;

@Service @Transactional public class PaidServiceImpl implements PaidService {
	 @Autowired private PaidMapper paidMapper;
	 @Autowired private ZulistMapper zulistMapper;

	 @Override public List<Paid> selectall(QueryVo vo) {
		  List<Paid> list = paidMapper.selectall(vo);
		  return list;
	 }

	 @Override public Double selectsum(QueryVo vo) {
		  Double sum = paidMapper.selectsum(vo);
		  return sum;
	 }

	 @Override public void deletepaid(Integer id) {
		  paidMapper.deletepaid(id);

	 }

	 @Override public List<Zulist> findZuList(Integer fangdongid) throws Exception {
		  List<Zulist> list = zulistMapper.findZuList(fangdongid);
		  return list;
	 }

	 @Override public List<Zulist> findAllZuList() throws Exception {
		  List<Zulist> list = zulistMapper.findAllZuList();
		  return list;
	 }

	 @Override public Zulist findzukezulist(Integer id) {
		  Zulist zulist = zulistMapper.findzukezulist(id);
		  return zulist;
	 }

}
